// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_offline;

import android.text.TextUtils;
import com.nnee.b.a.ag;
import com.nnee.b.a.k;
import com.nnee.p_fk.p_b.cls_d;
import com.nnee.p_pr.p_atom.cls_g;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.cls_v;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.concurrent.atomic.AtomicBoolean;

// Referenced classes of package com.nnee.p_pr.p_offline:
//            ProcessResult, b, e

public class cls_c extends cls_ag
    implements cls_d, com.nnee.i.c
{

    private c(LinkedList linkedlist, String s, String s1)
    {
        super(2100);
        j = new cls_atomicBoolean(false);
        k = new ProcessResult();
        d = new LinkedList();
        if(linkedlist != null)
        {
            cls_u u1;
            for(Iterator iterator = linkedlist.iterator(); iterator.hasNext(); d.add(u1.V()))
                u1 = (cls_u)iterator.next();

        }
        a = s;
        b = s1;
        c = linkedlist;
    }

    private int a(cls_ag ag1)
    {
        int i1;
        if(o())
        {
            i1 = -1;
        } else
        {
            ag1.b(0);
            ag1.a(this);
            ag1.c(l());
            ag1.d(3);
            ag1.a(this);
            g().a(ag1);
            i1 = ag1.m();
        }
        return i1;
    }

    public static cls_c a(LinkedList linkedlist, String s, String s1)
    {
        return new cls_c(linkedlist, s, s1);
    }

    private void a()
    {
        if(!o()) goto _L2; else goto _L1
_L1:
        return;
_L2:
        while(c != null && c.size() > 0) 
        {
            e = (u)c.removeFirst();
            k.a(e.U());
            k.e(1);
            a(1);
            String s = e.b(g.b);
            if(!TextUtils.isEmpty(s))
            {
                f = a(((ag) (com.nnee.p_b.p_a.cls_k.a(a, b, s, e.be(), e, false, true))));
                j.set(false);
                continue; /* Loop/switch isn't completed */
            }
        }
        j.set(false);
        if(!o())
        {
            if(i.size() > 0)
                continue; /* Loop/switch isn't completed */
            e(1);
            a(7);
        }
        super.e();
        h();
        if(true) goto _L1; else goto _L3
_L3:
    }

    private void a(int i1)
    {
        com.nnee.p_pr.p_offline.cls_b.a().a(i1, k);
        if(l != null)
            l.a(i1, k);
    }

    private boolean b()
    {
        if(!o()) goto _L2; else goto _L1
_L1:
        boolean flag = false;
_L4:
        return flag;
_L2:
        while(g != null && g.size() > 0) 
        {
            cls_u u1 = (u)g.removeFirst();
            if(u1 != null)
            {
                cls_k k1 = com.nnee.p_b.p_a.cls_k.a(a, b, u1, b(u1));
                i.add(Integer.valueOf(k1.m()));
                a(k1);
                flag = true;
                continue; /* Loop/switch isn't completed */
            }
        }
        flag = false;
        if(true) goto _L4; else goto _L3
_L3:
    }

    private boolean b(cls_u u1)
    {
        boolean flag;
        if(e.az() == com.nnee.p_pr.p_atom.c.a || e.az() == com.nnee.p_pr.p_atom.c.c || e.az() == com.nnee.p_pr.p_atom.c.h || u1.az() == com.nnee.p_pr.p_atom.c.a || u1.az() == com.nnee.p_pr.p_atom.c.c || u1.az() == com.nnee.p_pr.p_atom.c.h)
            flag = true;
        else
            flag = false;
        return flag;
    }

    private void e(int i1)
    {
        if(d != null)
        {
            cls_v v1 = v.a();
            LinkedList linkedlist = d;
            boolean flag;
            if(com.nnee.p_pr.a.u.a(com.nnee.p_b.p_a.cls_d.h().a()) == 0)
                flag = true;
            else
                flag = false;
            v1.a(linkedlist, flag, 0, i1);
            d = null;
        }
    }

    public void a(byte byte0, int i1)
    {
    }

    public void a(int i1, int j1, int k1, Object obj)
    {
        int l1;
        l1 = 0;
        break MISSING_BLOCK_LABEL_3;
_L1:
        do
            return;
        while(o() || i1 == 20003 || i1 == 20004);
        j1;
        JVM INSTR tableswitch 900 901: default 48
    //                   900 51
    //                   901 155;
           goto _L1 _L2 _L3
_L2:
        if(i1 != 4) goto _L1; else goto _L4
_L4:
        LinkedList linkedlist1 = i;
        linkedlist1;
        JVM INSTR monitorenter ;
        if(!i.remove(new Integer(k1))) goto _L6; else goto _L5
_L5:
        k.a(1);
        k.c(1);
        if(b() || i.size() != 0) goto _L8; else goto _L7
_L7:
        int i2;
        l1 = 1;
        i2 = 1;
_L14:
        if(i2 != 0)
            a(1);
        if(l1 != 0)
            a();
          goto _L1
        Exception exception1;
        exception1;
        linkedlist1;
        JVM INSTR monitorexit ;
        throw exception1;
_L3:
        if(obj == null || !(obj instanceof  com.nnee.p_pr.p_prot.cls_d)) goto _L10; else goto _L9
_L9:
        g = ((com.nnee.p_pr.p_prot.cls_d)obj).h;
        k.b(g.size());
        LinkedList linkedlist = i;
        linkedlist;
        JVM INSTR monitorenter ;
        if(!b()) goto _L12; else goto _L11
_L11:
        if(l1 < 3 && b()) goto _L13; else goto _L1
        Exception exception;
        exception;
        throw exception;
_L13:
        l1++;
          goto _L11
_L12:
        linkedlist;
        JVM INSTR monitorexit ;
_L10:
        a();
          goto _L1
_L8:
        i2 = 1;
          goto _L14
_L6:
        i2 = l1;
          goto _L14
    }

    public void a(cls_e e1)
    {
        l = e1;
    }

    public void b(byte byte0, int i1)
    {
        k.a(i1);
    }

    public void b(int i1, int j1, int k1, Object obj)
    {
        boolean flag = false;
        if(!o()) goto _L2; else goto _L1
_L1:
        return;
_L2:
        i1;
        JVM INSTR lookupswitch 5: default 64
    //                   10002: 108
    //                   10011: 102
    //                   10013: 108
    //                   10014: 120
    //                   20403: 114;
           goto _L3 _L4 _L5 _L4 _L6 _L7
_L3:
        int l1 = ((flag) ? 1 : 0);
_L10:
        if(l1 == 0) goto _L9; else goto _L8
_L8:
        a(l1);
        h();
        super.e();
        d(i1, obj);
        e(3);
          goto _L1
_L5:
        l1 = 3;
          goto _L10
_L4:
        l1 = 4;
          goto _L10
_L7:
        l1 = 5;
          goto _L10
_L6:
        l1 = 6;
          goto _L10
_L9:
        j1;
        JVM INSTR tableswitch 900 901: default 152
    //                   900 155
    //                   901 246;
           goto _L1 _L11 _L12
_L11:
        LinkedList linkedlist = i;
        linkedlist;
        JVM INSTR monitorenter ;
        if(!i.remove(new Integer(k1))) goto _L14; else goto _L13
_L13:
        k.a(1);
        if(b() || i.size() != 0) goto _L16; else goto _L15
_L15:
        boolean flag1;
        flag = true;
        flag1 = true;
_L17:
        if(flag)
            a(1);
        if(flag1)
            a();
          goto _L1
        Exception exception;
        exception;
        linkedlist;
        JVM INSTR monitorexit ;
        throw exception;
_L12:
        a();
          goto _L1
_L16:
        flag1 = flag;
        flag = true;
          goto _L17
_L14:
        flag1 = flag;
          goto _L17
    }

    public void c()
    {
        i = new LinkedList();
        k.d(c.size());
        k.f(com.nnee.p_pr.a.u.a(com.nnee.p_b.p_a.cls_d.h().a()));
        a(1);
        a();
    }

    public void e()
    {
        super.e();
        e(2);
    }

    String a;
    String b;
    LinkedList c;
    LinkedList d;
    u e;
    int f;
    LinkedList g;
    LinkedList i;
    AtomicBoolean j;
    cls_ProcessResult k;
    e l;
}
